import req from '../fetch/index.js'

const config = {
  // 获取分页表格数据
    getTableData: {
        url: '/pc/order/listOrder',
        method:'post'
  },
  getlistOrderDetail: {
    url: '/pc/order/listOrderDetail',
    method:'post'
  },
  updateOrderStatus: {
    url: '/pc/order/updateOrderStatus',
    method:'post'
  }
  
}

const request = function (funcName, requestParam) {
  return req(config[funcName].url, config[funcName].method, requestParam, {}, config[funcName].fileConfig)
}
export default request
